package com.cuc.util;


import com.cuc.services.FielService;
import com.cuc.services.TeacherService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.cuc")
public class SpringConfig {

    @Bean
    public TeacherService Teacher(){
        return new TeacherService();
    }
    @Bean
    public FielService Fiel(){
        return new FielService();
    }
}
